From f4048bc22f11e4c84e0fb7d5cd95a4538f7c65a8 Mon Sep 17 00:00:00 2001 From: robertl Date: Sun, 11 Oct 2009 01:50:09 +0000 Subject: [PATCH] Use description instead of shortnmae when -Sn. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@3807 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/lmx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/lmx.c b/gpsbabel/lmx.c index 69b041a16..f40762b78 100644 --- a/gpsbabel/lmx.c +++ b/gpsbabel/lmx.c @@ -77,7 +77,7 @@ lmx_print(const waypoint *wpt) { gbfprintf(ofd, " \n"); if (wpt->shortname) { - lmx_write_xml(4, "lm:name", wpt->shortname); + lmx_write_xml(4, "lm:name", global_opts.synthesize_shortnames ? wpt->description : wpt->shortname); } if (wpt->description) { lmx_write_xml(4, "lm:description", wpt->description); -- 2.30.2